package cn.edu.wynu.oop.shape;

public class Triangle extends Shape{

    int width;
    int height;

    public Triangle(String name, int width, int height) {
        super(name);
        this.width = width;
        this.height = height;
    }

    @Override
    public double returnSize() {
        return width * height / 2;
    }
}
